﻿<Window x:Class="StandaloneFolderExplorer.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="clr-namespace:BrainTechLLC.FolderExplorer;assembly=BrainTechLLC.FolderExplorer"
    xmlns:forms="clr-namespace:System.Windows.Controls;assembly=PresentationFramework"
    xmlns:this="clr-namespace:StandaloneFolderExplorer"
    WindowStartupLocation="CenterScreen"
    WindowState="Maximized" 
    Title="Window1" Height="600" Width="800"
    x:Name="window">
    <Window.CommandBindings>
        <CommandBinding x:Name="mnuExit" Command="ApplicationCommands.Close" Executed="mnuExit_Executed" />
    </Window.CommandBindings>
    <Grid VerticalAlignment="Stretch" x:Name="mainGrid" HorizontalAlignment="Stretch">
        <Menu Height="22" VerticalAlignment="Top">
            <MenuItem Header="_File">
                <MenuItem Header="E_xit" Command="ApplicationCommands.Close" />
                <MenuItem Header="In _Memory Objects" x:Name="mnuInMemory" Click="mnuInMemory_Click" />
                <!--<MenuItem x:Name="mnuShowAllDirSizes" Header="Show Al_l Directory Sizes" Click="mnuShowAllDirSizes_Click"/>-->                
            </MenuItem>
        </Menu>
        <TabControl Margin="0,22,0,0" VerticalAlignment="Stretch">
            <TabItem Header="Folders">
                <Grid VerticalAlignment="Stretch">                    
                    <Grid x:Name="gridTop" Height="22" VerticalAlignment="Top">
                        <StackPanel Orientation="Horizontal" Margin="2,0,0,0">
                            <TextBlock Text="Select Special Folder: " VerticalAlignment="Center" />
                            <ComboBox Width="200" x:Name="cboFolders" SelectionChanged="cboFolders_SelectionChanged" HorizontalAlignment="Left" />                            
                            <TextBlock Text=" "/>
                            <TextBlock Text="{Binding Path=CurrentWork, Mode=OneWay}"/>
                        </StackPanel>
                    </Grid>
                    <local:FolderExplorerControl Margin="0,24,0,0" x:Name="folderExplorer" VerticalAlignment="Stretch" />
                </Grid>                
            </TabItem>
            <TabItem Header="Logs">
                <this:LogControl x:Name="logControl" />
            </TabItem>
        </TabControl>

    </Grid>
</Window>
